import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
App.mpType = 'app'
import fun from './util/fun.js';
import env from "./util/env.js";
let baseUrl;
Vue.prototype.$fun = fun;
Vue.prototype.$baseUrl = baseUrl;
if (process.env.NODE_ENV === 'development') {
	// 线上环境
	baseUrl = env.dev.baseUrl;
	console.log = function () {}
} else {
	// 开发环境
	baseUrl = env.prod.baseUrl;
} // 全局组件
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif